<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html 	xmlns="http://www.w3.org/1999/xhtml"  
    	xmlns:h="http://java.sun.com/jsf/html"  
    	xmlns:f="http://java.sun.com/jsf/core"  
    	xmlns:p="http://primefaces.org/ui"
    	xmlns:ui="http://java.sun.com/jsf/facelets"
      	xmlns:a4j="http://richfaces.org/a4j"> 

<h:head><p:panel id="titlePanel" header="Dati istanza selezionata"></p:panel></h:head> 
<h:body> 
<h:form>
		<p:panel header="">
			<h:panelGrid columns="3" id="regGrid">
			
				<h:outputLabel for="id">ID:</h:outputLabel>
				<h:outputLabel value="#{istanzaBean.istanzaDTO.getId()}" for="id"></h:outputLabel> <br/>
				
				<h:outputLabel for="DataArrivo">Data Partenza:</h:outputLabel>
				<h:outputLabel value="#{istanzaBean.istanzaDTO.getDataArrivo()}" for="dataArrivo"></h:outputLabel>	<br/>			

				<h:outputLabel for="DataPartenza">Data Ritorno:</h:outputLabel>
				<h:outputLabel value="#{istanzaBean.istanzaDTO.getDataPartenza()}" for="dataPartenza"></h:outputLabel>  <br/>
				
				<h:outputLabel for="Destinazione">Destinazione:</h:outputLabel>
				<h:outputLabel value="#{istanzaBean.istanzaDTO.getDestinazione()}" for="destinazione"></h:outputLabel>   <br/>
								
				<h:outputLabel for="Prezzo">Prezzo:</h:outputLabel>
				<h:outputLabel value="#{istanzaBean.istanzaDTO.getPrezzo()}" for="prezzo"></h:outputLabel>   <br/>
				
						
			</h:panelGrid>
		</p:panel>
	</h:form>
	
	<h:form>
		<p:panel header="CF">
			<h:panelGrid columns="3" id="regGrid2">
			
				<h:outputLabel for="CF">*Codice Fiscale:</h:outputLabel>
				<p:inputText id="CF" value="#{istanzaBean.amicoDTO.codiceFiscale}" />
				<p:message for="CF" />
				
				
				<h:outputLabel for="id">*ID Istanza:</h:outputLabel>
				<p:inputText id="id" value="#{istanzaBean.istanzaDTO.id}" />
				<p:message for="id" />
				
			</h:panelGrid>
			
			<p:commandButton value="Partecipa al viaggio" update="regGrid2" action="#{istanzaBean.partecipa()}"/>

		</p:panel>
	</h:form>

</h:body> 
 
</html>
